<template>
  <div class="qunfuli">
    <div class="title">入群福利</div>
    <div v-for="(item, idx) in benefits" :key="idx" class="fuli">
      <p><span>{{ item.title }}</span></p>
      <img :src="item.img" alt="福利">
    </div>
  </div>
</template>

<script>
export default {
  name: 'GroupBenefits',
  props: {
    benefits: {
      type: Array,
      required: true
    }
  }
}
</script>

<style scoped>
.qunfuli {
  margin-top: 1rem;
}
.title {
  font-size: 1.32rem;
  color: #1c1f31;
  margin-top: 0.96rem;
}
.fuli p {
  font-size: 1.2rem;
  color: #7e7e7e;
  margin-top: 1rem;
  line-height: 1.6rem;
}
.fuli p span {
  color: #425887;
}
.fuli img {
  width: 100%;
  height: auto;
  margin-bottom: 0.5rem;
}
</style>
